package com.py.inrejected.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 进货订单对象 od_purchase_order
 * 
 * @author 童佳
 * @date 2024-11-21
 */
public class OdPurchaseOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Integer phId;

    /** 进货单号 */
    @Excel(name = "进货单号")
    private String phCode;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private String phState;

    /** 进货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date phDate;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 进货部门 */
    @Excel(name = "进货部门")
    private Long phDept;

    /** 进货人 */
    @Excel(name = "进货人")
    private String phPerson;

    /** 备注 */
    private String phRemark;

    /** 货品数量 */
    @Excel(name = "货品数量")
    private Long goodsNum;

    /** 货品金额 */
    @Excel(name = "货品金额")
    private BigDecimal goodsMoney;

    /** 所在部门 */
    @Excel(name = "所在部门")
    private String createDept;

    /** 审核人 */
    @Excel(name = "审核人")
    private String reviewer;

    @Excel(name = "审核人意见")
    private String reviewerReport;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewerTime;

    /** 逻辑删除 */
    private String isDel;

    @Transient
    private String deptName;
    @Transient
    private String proNames;

    @Transient
    private Integer number;
    @Transient
    private Integer codeId;
    @Transient
    private List<Object> fileList;

    /** $table.subTable.functionName信息 */
    private List<OdPurchaseDetails> odPurchaseDetailsList;

    public String getProNames() {
        return proNames;
    }

    public void setProNames(String proNames) {
        this.proNames = proNames;
    }

    public String getReviewerReport() {
        return reviewerReport;
    }

    public void setReviewerReport(String reviewerReport) {
        this.reviewerReport = reviewerReport;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setPhId(Integer phId)
    {
        this.phId = phId;
    }

    public Integer getPhId() 
    {
        return phId;
    }
    public void setPhCode(String phCode) 
    {
        this.phCode = phCode;
    }

    public String getPhCode() 
    {
        return phCode;
    }
    public void setPhState(String phState) 
    {
        this.phState = phState;
    }

    public String getPhState() 
    {
        return phState;
    }
    public void setPhDate(Date phDate) 
    {
        this.phDate = phDate;
    }

    public Date getPhDate() 
    {
        return phDate;
    }
    public void setSupplier(String supplier)
    {
        this.supplier = supplier;
    }

    public String getSupplier()
    {
        return supplier;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPhDept(Long phDept) 
    {
        this.phDept = phDept;
    }

    public Long getPhDept() 
    {
        return phDept;
    }
    public void setPhPerson(String phPerson)
    {
        this.phPerson = phPerson;
    }

    public String getPhPerson()
    {
        return phPerson;
    }
    public void setPhRemark(String phRemark) 
    {
        this.phRemark = phRemark;
    }

    public String getPhRemark() 
    {
        return phRemark;
    }
    public void setGoodsNum(Long goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum() 
    {
        return goodsNum;
    }
    public void setGoodsMoney(BigDecimal goodsMoney) 
    {
        this.goodsMoney = goodsMoney;
    }

    public BigDecimal getGoodsMoney() 
    {
        return goodsMoney;
    }
    public void setCreateDept(String createDept)
    {
        this.createDept = createDept;
    }

    public String getCreateDept()
    {
        return createDept;
    }
    public void setReviewer(String reviewer) 
    {
        this.reviewer = reviewer;
    }

    public String getReviewer() 
    {
        return reviewer;
    }
    public void setReviewerTime(Date reviewerTime) 
    {
        this.reviewerTime = reviewerTime;
    }

    public Date getReviewerTime() 
    {
        return reviewerTime;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getCodeId() {
        return codeId;
    }

    public void setCodeId(Integer codeId) {
        this.codeId = codeId;
    }

    public List<Object> getFileList() {
        return fileList;
    }

    public void setFileList(List<Object> fileList) {
        this.fileList = fileList;
    }

    public List<OdPurchaseDetails> getOdPurchaseDetailsList()
    {
        return odPurchaseDetailsList;
    }

    public void setOdPurchaseDetailsList(List<OdPurchaseDetails> odPurchaseDetailsList)
    {
        this.odPurchaseDetailsList = odPurchaseDetailsList;
    }


    @Override
    public String toString() {
        return "OdPurchaseOrder{" +
                "phId=" + phId +
                ", phCode='" + phCode + '\'' +
                ", phState='" + phState + '\'' +
                ", phDate=" + phDate +
                ", supplier='" + supplier + '\'' +
                ", contacts='" + contacts + '\'' +
                ", phone='" + phone + '\'' +
                ", phDept=" + phDept +
                ", phPerson='" + phPerson + '\'' +
                ", phRemark='" + phRemark + '\'' +
                ", goodsNum=" + goodsNum +
                ", goodsMoney=" + goodsMoney +
                ", createDept='" + createDept + '\'' +
                ", reviewer='" + reviewer + '\'' +
                ", reviewerReport='" + reviewerReport + '\'' +
                ", reviewerTime=" + reviewerTime +
                ", isDel='" + isDel + '\'' +
                ", deptName='" + deptName + '\'' +
                ", proNames='" + proNames + '\'' +
                ", number=" + number +
                ", codeId=" + codeId +
                ", fileList=" + fileList +
                ", odPurchaseDetailsList=" + odPurchaseDetailsList +
                '}';
    }
}
